home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / lisp / wgdb-42.lha / wgdb-4.2 / gdb / nindy-share / block_io.h < prev    next >
Text File  |  1992-09-11  |  2KB  |  67 lines

  1. /******************************************************************/
  2. /*         Copyright (c) 1990, Intel Corporation
  3.  
  4.    Intel hereby grants you permission to copy, modify, and 
  5.    distribute this software and its documentation.  Intel grants
  6.    this permission provided that the above copyright notice 
  7.    appears in all copies and that both the copyright notice and
  8.    this permission notice appear in supporting documentation.  In
  9.    addition, Intel grants this permission provided that you
  10.    prominently mark as not part of the original any modifications
  11.    made to this software or documentation, and that the name of 
  12.    Intel Corporation not be used in advertising or publicity 
  13.    pertaining to distribution of the software or the documentation 
  14.    without specific, written prior permission.  
  15.  
  16.    Intel Corporation does not warrant, guarantee or make any 
  17.    representations regarding the use of, or the results of the use
  18.    of, the software and documentation in terms of correctness, 
  19.    accuracy, reliability, currentness, or otherwise; and you rely
  20.    on the software, documentation and results solely at your own 
  21.    risk.                              */
  22. /******************************************************************/
  23.  
  24. /*****************************************************************************
  25.  * Structures and definitions supporting NINDY requests for services by a
  26.  * remote host.  Used by NINDY monitor, library libnin, comm960, gdb960,
  27.  * etc.  Also contains some defines for NINDY console I/O requests.
  28.  *****************************************************************************/
  29.  
  30. /* the following four are hardware dependent */
  31. #define    BIT_16        short
  32. #define    BIT_32        int
  33. #define    UBIT_16        unsigned short
  34. #define    UBIT_32        unsigned int
  35.  
  36. /* Service request numbers -- these are the services that can be asked of the
  37.  * host.
  38.  */
  39. #define BS_ACCESS    0x10
  40. #define BS_CLOSE    0x20
  41. #define BS_CREAT    0x30
  42. #define BS_SEEK        0x40
  43. #define BS_OPEN        0x50
  44. #define BS_READ        0x60
  45. #define BS_STAT        0x70
  46. #define BS_SYSTEMD    0x80
  47. #define BS_TIME        0x90
  48. #define BS_UNMASK    0xa0
  49. #define BS_UNLINK    0xb0
  50. #define BS_WRITE    0xc0
  51.  
  52.  
  53. /* Maximum number of arguments to any of the above service requests
  54.  * (in addition to the request number).
  55.  */
  56. #define MAX_SRQ_ARGS    3
  57.  
  58. /* Number of bytes of data that can be read or written by a single I/O request
  59.  */
  60. #define BUFSIZE        1024
  61.  
  62. /* NINDY console I/O requests:  CO sends a single character to stdout,
  63.  * CI reads one.
  64.  */
  65. #define CI         0
  66. #define CO         1
  67.